# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-themes-extra
pkgver=3.28
pkgrel=3
pkgdesc="Misc themes and theme-y tidbits"
url="https://gitlab.gnome.org/GNOME/gnome-themes-extra"
# s390x and riscv64 blocked by librsvg
arch="noarch !s390x !riscv64"
license="LGPL-2.1-only"
depends="ttf-cantarell librsvg"
makedepends="intltool gtk+3.0-dev librsvg-dev gnome-common automake autoconf
	libtool"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/GNOME/gnome-themes-extra/-/archive/$pkgver/gnome-themes-extra-$pkgver.tar.gz"
replaces="gnome-themes-standard" # upstream rename
provides="gnome-themes-standard=$pkgver-r$pkgrel"

build() {
	NOCONFIGURE=1 ./autogen.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-gtk2-engine
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c154747251585a3ff8217104eadc8c634a6d4e673bdbce80bce4b149f3a0d9815a84cbe846791c3d3cfc2e429667c2f6951cdd9604d226a9b31b81bd7100cc7a  gnome-themes-extra-3.28.tar.gz
"
